package com.company.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.company.project.common.exception.BusinessException;
import com.company.project.entity.BusiMytraEntity;
import com.company.project.vo.req.MytraRequestVO;
import com.company.project.vo.resp.MytraListVO;

import java.util.List;

/**
 * 我的轨迹
 *
 * @author zhanggm
 * @email *****@mail.com
 * @date 2021-06-15 09:54:41
 */
public interface BusiMytraService extends IService<BusiMytraEntity> {
    /**
     * 我的轨迹信息上报
     *
     * @param busiMytraEntity
     * @throws BusinessException
     */
    void wholeAdd(BusiMytraEntity busiMytraEntity) throws BusinessException;

    /**
     * 获取人员位置信息
     * 如果userId不填，则获取所有人员的位置信息
     *
     * 从redis中取数据
     *
     * @param userId
     * @return
     * @throws BusinessException
     */
    List<BusiMytraEntity> wholeGetPos(String userId) throws BusinessException;

    /**
     * 轨迹列表查询
     *
     * @param mytraRequestVO
     * @return
     * @throws BusinessException
     */
    List<MytraListVO> wholeGetMytralist(MytraRequestVO mytraRequestVO) throws BusinessException;



}

